<extend name="Public/base"/>


<!-- 子導航 -->
<block name="sidebar">
    <include file="sidemenu" />
</block>

<block name="body">
 
	<!-- 標題 -->
	<div class="main-title">
		<h3>
		商品列表
		
		</h3>
	</div>
     
        

	<!-- 按鈕工具欄 -->
        <div class="row">
		<div class="">
                    <header class="header bg-white  b-b clearfix">
                        <div class="row m-t-sm">
                            <div class="col-sm-8 m-b-xs">
                                <div class="btn-group m-b-sm" role="group">
                                        <div class="btn-group">
                                                <gt name="allow" value="0">
                                                        <button class="btn btn-default document_add" <if condition="count($model) eq 1">url="{:U('article/add',array('cate_id'=>$cate_id,'pid'=>I('pid',0),'model_id'=>$model[0]))}"</if>>新 增
                                                                <if condition="count($model) gt 1"><i class="btn-arrowdown"></i></if>
                                                        </button>
                                                        <if condition="count($model) gt 1">
                                                        <ul class="dropdown nav-list">
                                                                <volist name="model" id="vo">
                                                                <li><a href="{:U('article/add',array('cate_id'=>$cate_id,'model_id'=>$vo,'pid'=>I('pid',0)))}">{$vo|get_document_model='title'}</a></li>
                                                                </volist>
                                                        </ul>
                                                        </if>
                                                <else/>
                                                        <button class="btn btn-default disabled" >新 增
                                                                <if condition="count($model) gt 1"><i class="btn-arrowdown"></i></if>
                                                        </button>
                                                </gt>
                                        </div>
                                        <input type="hidden" class="hide-data" name="cate_id" value="{$cate_id}"/>
                                        <input type="hidden" class="hide-data" name="pid" value="{$pid}"/>
                                        <button class="btn btn-default ajax-post confirm" target-form="ids" url="{:U("Article/setStatus",array("status"=>-1))}">刪 除</button>
                                        <button class="btn btn-default list_sort" url="{:U('sort',array('cate_id'=>$cate_id,'pid'=>I('pid',0)),'')}">排序</button>
                                </div>
                            </div>
                   
                            </div>
                        </div>
                    </header>
		</div>

		
	</div>

	<!-- 數據表格 -->
    <div class="data-table">
		<table class="table table-hover">
            <!-- 表頭 -->
            <thead>
                <tr>
                    <th class="row-selected row-selected">
                        <input class="check-all" type="checkbox">
                    </th>
                    <volist name="list_grids" id="field">
                        <th>{$field.title}</th>
                    </volist>
                </tr>
            </thead>

            <!-- 列表 -->
            <tbody>
                <volist name="list" id="data">
                    <tr>
                        <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
                         <td>{$data['id']}</td>
                        <td>{$data['title']}</td>
                    </tr>
                </volist>
            </tbody>
        </table>
	</div>
	<!-- 分頁 -->
<nav>

  <ul class="pagination">

  {$_page}  

  </ul>
</nav>
  


  




</block>

